Site Payments Process API - Implementation Template
Developer guide
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables. It can be used by developers seeking a solution to process site payments using Veeva CTMS and SAP S/4HANA.
Module | Description |
---|---|
createSAPJournalEntryRequest | Convert Veeva Payment Request to SAP System API Journal Entry request. |
createSAPJournalEntryRequest
Convert Veeva Payment Request to SAP System API Journal Entry request.
Source:
./src/main/resources/dwl/createSAPJournalEntryRequest.dwl
Mapping Tables
Maps Veeva Payment Request to SAP System API Create Journal Entry Request. Implements required fields to create a Journal Entry in SAP and can be extended as necessary.
SAP Field Name | CTMS Field Name | Description |
---|---|---|
SenderSystemId | Configuration value senderSystemId from properties file | |
messageHeader.recipientSystemId | Configuration value recipientSystemId from properties file | |
journalEntry.referenceDocumentType | Configuration value referenceDocumentType from properties file | |
journalEntry.referenceDocumentSystemName | Configuration value referenceDocumentSystemName from properties file | |
journalEntry.referenceDocumentId | payment__v.id | Veeva CTMS Payment Request Id |
journalEntry.transactionType | Configuration value transactionType from properties file | |
journalEntry.accountingDocumentType | Constant value "KR" provided f | |
journalEntry.documentHeaderText | Configuration value documentHeaderText from properties file | |
journalEntry.createdBy | Configuration value createdBy from properties file | |
journalEntry.companyCode | payable_itemsvr.project_codev | Veeva CTMS Payable Item Project Code |
journalEntry.documentDate | payment__v.modified_date | Veeva CTMS Payment Request Last Modified Date |
journalEntry.postingDate | now() | Current Date |
item.glAccount | payable_itemsvr.account_codev | Veeva CTMS Payable Item Account Code |
item.amount.amount | payable_itemsvr.amountv | Sum of all CTMS Payable Items |
item.amount.currencyCode | payable_itemsvr.local_currencysysr.name__v | Veeva CTMS Payable Item Local Currency |
creditorItem.creditor | payable_itemsvr.payee_namevr.debtor__c | Veeva CTMS Payee Debtor Code |
creditorItem.amount.amount | payable_itemsvr.amountv | Sum of all CTMS Payable Items to be credited. Credits are negative values |
creditorItem.amount.currencyCode | payable_itemsvr.local_currencysysr.name__v | Veeva CTMS Payable Item Local Currency |